package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class GoldOverview implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *总重量
     */
    private BigDecimal weight;

    /**
     *总价
     */
    private BigDecimal totalPrice;

    /**
     *平均单价
     */
    private BigDecimal unitPrice; // 可选手动设置或自动计算

    /**
     * 累计盈亏
     */
    private BigDecimal totalProfitLoss;

    private Long userId;

    private String remarks;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    private int delFlag;


}
